add_executable(main "")

target_sources(main
    PRIVATE
        ${CMAKE_CURRENT_LIST_DIR}/main.c
        ${CMAKE_CURRENT_LIST_DIR}/src/blocks.c
        ${CMAKE_CURRENT_LIST_DIR}/src/drawblocks.c
        ${CMAKE_CURRENT_LIST_DIR}/src/render.c
        ${CMAKE_CURRENT_LIST_DIR}/src/texture.c
        ${CMAKE_CURRENT_LIST_DIR}/src/winInit.c
     
)

target_include_directories(main
    PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}
        ${CMAKE_CURRENT_LIST_DIR}/inc        
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/include/SDL2
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/include/SDL2
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/include/SDL2
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_ttf-2.0.15/x86_64-w64-mingw32/include/SDL2
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2-2.0.12/x86_64-w64-mingw32/include/SDL2
)

target_link_libraries(main
    PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/SDL2_image.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/libjpeg-9.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/libpng16-16.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/libtiff-5.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/libwebp-7.dll   
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_image-2.0.5/x86_64-w64-mingw32/bin/zlib1.dll 
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/SDL2_mixer.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libFLAC-8.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libmodplug-1.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libmpg123-0.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libogg-0.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libopus-0.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libopusfile-0.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libvorbis-0.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_mixer-2.0.4/x86_64-w64-mingw32/bin/libvorbisfile-3.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_ttf-2.0.15/x86_64-w64-mingw32/bin/SDL2_ttf.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_ttf-2.0.15/x86_64-w64-mingw32/bin/libfreetype-6.dll
        #${CMAKE_CURRENT_LIST_DIR}/lib/SDL2_ttf-2.0.15/x86_64-w64-mingw32/bin/zlib1.dll
        ${CMAKE_CURRENT_LIST_DIR}/lib/SDL2-2.0.12/x86_64-w64-mingw32/bin/SDL2.dll
)